package com.baor.controller;

import com.baor.service.BackService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/back")
public class BackController {
    @Autowired
    private BackService backService;
    @RequestMapping("/backList")
    public AjaxResult<?> orderList(@RequestBody Map<String, Object> params) {
        return this.backService.backList(params);
    }
    @RequestMapping("/backNotes")
    public AjaxResult<?> backNotes(@RequestBody Map<String, Object> params) {
        return this.backService.backNotes(params);
    }
    @RequestMapping("/updateBackNotes")
    public AjaxResult<?> updateBackNotes(@RequestBody Map<String, Object> params) {
        return this.backService.updateBackNotes(params);
    }
    @RequestMapping("/backInfo")
    public AjaxResult<?> backInfo(@RequestBody Map<String, Object> params) {
        return this.backService.backInfo(params);
    }
    @RequestMapping("/addBack")
    public AjaxResult<?> addBack(@RequestBody Map<String, Object> params) {
        return this.backService.addBack(params);
    }

}
